import request from '../utils/request';


//注册
export const apiToRegistered = (data) =>{
  return request({
      url:'/user/registered',
      method:'post',
      data
  })
}
//登录
export const apiToLogin = (data) =>{
    return request({
        url:'/user/login',
        method:'post',
        data
    })
  }